import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取定价复核、估值核对、压力测试报告、现金管理报告未读消息
  getUnreadList: (query) => api.get(`${config.interfaces.type5}portfolio-server/maatMessage/findMaatMessage`, query),
  // 获取负面舆情数据
  getNegativeData: (query) => api.get(`${config.interfaces.type5}maat-workstation/investmentTips/negativePublicOpinion`, query),
  // 评级下调
  getRatingData: (query) => api.get(`${config.interfaces.type5}maat-workstation/investmentTips/downgrade`, query),
  // 成交偏移度
  getTransDeviationData: (query) => api.get(`${config.interfaces.type5}maat-workstation/investmentTips/transactionDeviation`, query),
  // 行为事件
  getBehaviorData: (query) => api.get(`${config.interfaces.type5}maat-workstation/investmentTips/behavioralEvent`, query),
  // 登记事件
  getRegisterData: (query) => api.get(`${config.interfaces.type5}maat-workstation/investmentTips/queryRegisterEvent`, query),
};
